package com.wzf;

import java.io.Serializable;

/**
 * @Author:wzf
 * @Data:2022/2/18
 * @Version:1.0
 */
public class User implements Serializable{

  /**
   * 生成对应的唯一的序列化ID
   */
  private static final long serialVersionUID = -8697323381202332598L;


  /**
   * 用户ID
   */
  private Integer id;

  /**
   * 用户名称
   */
  private String name;

  @Override
  public String toString() {
    return "User{" +
        "id=" + id +
        ", name='" + name + '\'' +
        '}';
  }

  public User() {
  }

  public User(Integer id, String name) {
    this.id = id;
    this.name = name;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }
}
